home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / guilib3 / inc / egbmacro.h < prev    next >
C/C++ Source or Header  |  1993-11-30  |  793b  |  25 lines

  1. #ifndef    _EGBMACRO_H
  2. #define    _EGBMACRO_H
  3.  
  4. #define    _EGB_FRCOLOR(_col)    EGB_color(EgbPtr,0,(_col))
  5. #define    _EGB_BKCOLOR(_col)    EGB_color(EgbPtr,1,(_col))
  6. #define    _EGB_FLCOLOR(_col)    EGB_color(EgbPtr,2,(_col))
  7. #define    _EGB_TRCOLOR(_col)    EGB_color(EgbPtr,3,(_col))
  8.  
  9. #define    _EGB_PUTBLOCKCOLOR(_clip, _x1,_y1,_x2,_y2,_ds,_dat)    {        \
  10.     struct                                                            \
  11.     {    void            *dat;                                        \
  12.         unsigned short    ds;                                            \
  13.         short            x1, y1, x2, y2;                                \
  14.     } putBlockPara;                                                    \
  15.     putBlockPara.dat = _dat;                                        \
  16.     putBlockPara.ds  = _ds;                                            \
  17.     putBlockPara.x1  = _x1;                                            \
  18.     putBlockPara.y1  = _y1;                                            \
  19.     putBlockPara.x2  = _x2;                                            \
  20.     putBlockPara.y2  = _y2;                                            \
  21.     EGB_putBlockColor( EgbPtr, (_clip), (char *)&putBlockPara );    \
  22. }
  23.  
  24. #endif
  25.